package com.netdisk.entity;
/**
 * 用户类, 分为单用户,和公司级用户
 * @author chenlong
 *2013-4-13
 */
public class User extends BaseNetdiskEntity{
	
	private String id; 
	
	//用户登录名称
	private String loginName;
	
	//用户登录密码
	private String loginPassword;
	
	//用户名称
	private String userName;
	
	//用户的QQ
	private String userQq;
	
	//用户的邮箱
	private String userMail;
	
	//状态 0,已经注销, 1活动, 2锁定
	private byte status = 1;
	
	public User(){}
	
	public User(String id, String companyId, String companyName, String loginName, String loginPassword, String userName, String userQq, String userMail,
		byte status) {
		this.id = id;
		this.companyId = companyId;
		this.companyName = companyName;
		this.loginName = loginName;
		this.loginPassword = loginPassword;
		this.userName = userName;
		this.userQq = userQq;
		this.userMail = userMail;
		this.status = status;
	}
	
	public User(String id, String loginName, String loginPassword, String userName, String userQq, String userMail, byte status) {
		super(); 
		this.id = id;
		this.loginName = loginName;
		this.loginPassword = loginPassword;
		this.userName = userName;
		this.userQq = userQq;
		this.userMail = userMail;
		this.status = status;
	}
	
	public String getLoginName() {
		return loginName;
	}

	public void setLoginName(String loginName) {
		this.loginName = loginName;
	}

	public String getLoginPassword() {
		return loginPassword;
	}

	public void setLoginPassword(String loginPassword) {
		this.loginPassword = loginPassword;
	}

	public void setId(String id ){
		this.id = id;
	}
	
	public String getId(){
		return id;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getUserQq() {
		return userQq;
	}

	public void setUserQq(String userQq) {
		this.userQq = userQq;
	}

	public String getUserMail() {
		return userMail;
	}

	public void setUserMail(String userMail) {
		this.userMail = userMail;
	}

	public byte getStatus() {
		return status;
	}

	public void setStatus(byte status) {
		this.status = status;
	}

	@Override
	public String toString() {
		return "User [id=" + id + ", companyId" + getCompanyId()+ ",companyName" +getCompanyName() 
				+ ",loginName" + this.loginName + ",loginPassword" + this.loginPassword
				+ ", userName=" + userName + ", userQq="
				+ userQq + ", userMail=" + userMail + 
				 ", status=" + status + "]";
	}
	
}
